import request from '@/utils/request.js'

// 获取骑手信息 {{host}}/member/Member_rider/material
export const GetRiderInfoApi = () => {
	return request('/member/Member_rider/material')
}

// 骑手信息编辑 {{host}}/member/Member_rider/changeInfo
/**
 * @param name     姓名
 * @param avatar   头像id
 * @param on_line  1在线 ==0不在线
 * @param work_start_time 开始时间
 * @param work_over_time  结束时间
*/
export const EditRiderInfoApi = (params) => {
	return request('/member/Member_rider/changeInfo', params)
}

// 获得骑手钱包记录 {{host}}/member/personal/wallet_info
/**
 * @param type 固定传参 rider_deposit
 * @param start_time
 * @param over_time
 * @param status 0==全部 1==收入 2==支出
*/
export const GetWalletInfoApi = (params) => {
	return request('/member/personal/wallet_info', params)
}

// 提现 {{host}}/member/member/apply_cash
export const TXApi = (params) => {
	return request('/member/member/apply_cash', params)
}

// 获得骑手提现记录 {{host}}/member/member/cash_list
/**
 * @param type 固定传参 rider_deposit
*/
export const GetWalletTXInfoApi = (params) => {
	return request('/member/member/cash_list', params)
}

// 修改配送范围 {{host}}/member/Member_rider/changeInfo
/**
 * @param region
*/
export const EditRegionApi = (params) => {
	return request('/member/Member_rider/changeInfo', params)
}

// 获取我合作的商家列表 {{host}}/member/rider_cooperation/getCollaborateList
/**
 * @param latitude
 * @param longitude
*/
export const GetCooperShopListApi = (params) => {
	return request('/member/rider_cooperation/getCollaborateList', params)
}

// 确认合作 {{host}}/member/rider_cooperation/yesShop
/**
 * @param shop_id
*/
export const YesShopApi = (params) => {
	return request('/member/rider_cooperation/yesShop', params)
}
// 终止合作 {{host}}/member/rider_cooperation/stopShop
/**
 * @param shop_id
*/
export const StopShopApi = (params) => {
	return request('/member/rider_cooperation/stopShop', params)
}
// 获得评论列表统计 {{host}}/shop/order/get_comment_tongji_rider
export const GetRiderEvaTotalApi = (params) => {
	return request('/shop/order/get_comment_tongji_rider', params)
}

// 获得评论列表 {{host}}/shop/order/get_comment_list_rider
/**
 * @param star
*/
export const GetRiderEvaApi = (params) => {
	return request('/shop/order/get_comment_list_rider', params)
}